Trò chơi đua xe động vật trong UNITY Engine
114.635 lượt xem;
- MainMenuScreen.cs
- MainMenu /
- AnimalRacing /
- Scripts /
- Assets /
- project /
1 using UnityEngine;
2 using System.Collections;
3
4 public class MainMenuScreen : MonoBehaviour {
5 void Awake()
6 {
7 //SoundManager.LoadBgMusic("Sounds/menu", false);
8 }
9
10 public void Start()
11 {
12 ARController.setBannerVisible(false);
13 ARController.showInterstitialAd();
14 Data.InitData();
15 }
16
17 public void Update()
18 {
19 if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Backspace))
20 {
21 if(InputController.Name == InputNames.MAINMENU)
22 Application.Quit();
23 }
24 }
25 }
2 using System.Collections;
3
4 public class MainMenuScreen : MonoBehaviour {
5 void Awake()
6 {
7 //SoundManager.LoadBgMusic("Sounds/menu", false);
8 }
9
10 public void Start()
11 {
12 ARController.setBannerVisible(false);
13 ARController.showInterstitialAd();
14 Data.InitData();
15 }
16
17 public void Update()
18 {
19 if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Backspace))
20 {
21 if(InputController.Name == InputNames.MAINMENU)
22 Application.Quit();
23 }
24 }
25 }
SoundManager.LoadBgMusic("Soundsmenu", false);